home *** CD-ROM | disk | FTP | other *** search
/ Champak 33 / Volume 33 - JOGO DISK .iso / Games / showdown_noel.swf / scripts / DefineSprite_50 / frame_5 / DoAction.as
Text File  |  2007-01-15  |  487b  |  15 lines

  1. var loadedPercent = int(_root.getBytesLoaded() / _root.getBytesTotal() * 100);
  2. if(loadedPercent < 100)
  3. {
  4.    mcLoadingAnimated.mcLoading.gotoAndStop(loadedPercent);
  5.    mcLoadingAnimated.mcLoading.txtPercentLoaded1 = "The game is loading (" + loadedPercent + "%)";
  6.    mcLoadingAnimated.mcLoading.txtPercentLoaded2 = "The game is loading (" + loadedPercent + "%)";
  7.    _root.gotoAndStop(2);
  8.    gotoAndPlay(_currentframe - 1);
  9. }
  10. else
  11. {
  12.    mcLoadingAnimated.play();
  13.    stop();
  14. }
  15.